using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class FeedBackForm : System.Web.UI.Page
{

	
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!Page.IsPostBack)
		{
			if (this.Page.Request.QueryString["Department"] == null)
			{
				lblTo.Text = "Adventure Works: General Feedback";
				return;
			}
			switch (this.Page.Request.QueryString["Department"].ToUpper())
			{
				case "WEB":
					lblTo.Text = "Adventure Works: Web site feedback";
					break;
				case "PRODUCTS":
					lblTo.Text = "Adventure Works: Product feedback";
					break;
				default:
					lblTo.Text = "Adventure Works: General feedback";
					break;
			}
		}
	}



	protected void Button1_Click(object sender, EventArgs e)
	{
		lblTo.Text = "Thank-you for your feedback. Your comment<br /><em>"
			+ TextBox1.Text + "</em><br /> has been noted.";
		TextBox1.Visible = false;
		Label8.Visible = false;
		Button1.Visible = false;
	}
}
